package com.nexgo.payment.api;

import com.nexgo.oaf.apiv3.APIProxy;
import com.nexgo.oaf.apiv3.DeviceEngine;
import com.nexgo.oaf.apiv3.emv.EmvHandler;
import com.nexgo.payment.App;
import com.nexgo.payment.constrant.SysConstant;

/**
 * Created by xiaox on 2017/1/16.
 */

public class ApiDeviceEngine {

    public static DeviceEngine getInstance() {
        return ApiDeviceEngine.SingletonCreate.getInstance;
    }

    private static class SingletonCreate {
        private static final DeviceEngine getInstance = APIProxy.getDeviceEngine();
    }

    /**
     * 获取默认的emvhandler
     *
     * @return
     */
    public static EmvHandler getDefaultEmvHandler() {
        return getInstance().getEmvHandler(SysConstant.EMV_OPERAT_PATH);
    }
}
